<?php
require_once('../includes/config.inc');
require_once('../includes/variables.inc');

session_register($rights);

?>

<html>
<head>
<script language="javascript" type="text/javascript">
function openLink (href) {
   parent.frames['main'].location.href = href;
   parent.destroyContext();
}
</script>


<style type="text/css"><?php
include('../themes/'.$theme.'/context.css');
?></style>

</head><body>

<form>
<?php 
$albId = $_REQUEST[albId];
$albMulti = $_REQUEST[albMulti];

$alb = mysql_fetch_array(mysql_query("SELECT * FROM `album` WHERE (`cddbid`='".$albId."') LIMIT 1 "));

$albMatchQuery = mysql_query(" SELECT * FROM `album` WHERE (`multi_id`='".$albId."') AND (`cddbid` != '".$albId."') ORDER BY `multi` ASC ");
while ($albMatch = mysql_fetch_array($albMatchQuery)) {
   printf('<select><option>A</option><option>B</option></select>%s: %s by %s<br />', 
   $albMatch[multi], 
   $albMatch[title],
   $albMatch[artist]);
}
//$srchQuery = mysql_query("SELECT * FROM `track` WHERE (`virtue`>'2') AND (`title` LIKE '%".$_REQUEST['s']."%' ) ");
//while ($srch = mysql_fetch_array($srchQuery)) {
//   printf('<small>"<a onClick="openLink(\'../main.php?mode=traffic&do=air_add&trkId=%s\')">%s</a>" by %s </small><br />', $srch[id], $srch[title], $srch[artist]);
//}
?><input type="button" value="save settings"/></form>
</body>
</html>